package com.qyer.search.enums;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

/**
 * User: Z J Wu Date: 2016/01/20 Time: 14:43 Package: com.qyer.search.enums
 */
public enum SKUType2 {
  WIFI(2375, "WIFI/电话卡"),
  CARPOOL(2376, "接送机/拼车/包车"),
  TICKET(2377, "公园/景点门票"),
  MASSAGE(2378, "按摩/SPA"),
  ACTIVITY(2379, "特色活动"),
  FOOD_COOKING(2380, "美食/厨艺"),
  SHOW_GAME(2381, "演出/赛事"),
  CITY_PASS(2382, "交通票券/城市通票"),
  ISLAND(2369, "海岛/出海"),
  NATURE_LANDSCAPE(2371, "自然景观"),
  HUMANITIES(2372, "人文体验"),
  SHOPPING(2373, "购物/折扣券"),
  CITYWALK(2831, "CityWalk"),
  DISCOVERY(2830, "发现城市"),
  OTHER(0, "其他");

  public static Map<Integer, String> SKU_TYPE2_MAP = new HashMap<>();

  static {
    for (SKUType2 type2 : EnumSet.allOf(SKUType2.class)) {
      SKU_TYPE2_MAP.put(type2.getId(), type2.getDesc());
    }
  }

  private int id;

  private String desc;

  SKUType2(int id, String desc) {
    this.id = id;
    this.desc = desc;
  }

  public int getId() {
    return id;
  }

  public String getDesc() {
    return desc;
  }

  public static String toDesc(int id) {
    switch (id) {
      case 2375:
        return WIFI.getDesc();
      case 2376:
        return CARPOOL.getDesc();
      case 2377:
        return TICKET.getDesc();
      case 2378:
        return MASSAGE.getDesc();
      case 2379:
        return ACTIVITY.getDesc();
      case 2380:
        return FOOD_COOKING.getDesc();
      case 2381:
        return SHOW_GAME.getDesc();
      case 2382:
        return CITY_PASS.getDesc();
      case 2369:
        return ISLAND.getDesc();
      case 2371:
        return NATURE_LANDSCAPE.getDesc();
      case 2372:
        return HUMANITIES.getDesc();
      case 2373:
        return SHOPPING.getDesc();
      case 2831:
        return CITYWALK.getDesc();
      case 2830:
        return DISCOVERY.getDesc();
      default:
        return OTHER.getDesc();
    }
  }
}
